
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hello</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Arial, sans-serif;
        }

        body {
            background-color: #f0f4f8;
            padding: 2rem;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
        }

        .page-title {
            text-align: center;
            color: #2c3e50;
            margin-bottom: 2rem;
            font-size: 2.5rem;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
        }

        .student-list {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
            gap: 1.5rem;
        }

        .student-card {
            background: white;
            border-radius: 10px;
            padding: 1.5rem;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }

        .student-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 6px 12px rgba(0,0,0,0.15);
        }

        .student-avatar {
            width: 80px;
            height: 80px;
            border-radius: 50%;
            background-color: #3498db;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1rem;
        }

        .student-avatar i {
            color: white;
            font-size: 2rem;
        }

        .student-info {
            text-align: center;
            margin-bottom: 1rem;
        }

        .student-name {
            color: #2c3e50;
            font-size: 1.4rem;
            margin-bottom: 0.5rem;
        }

        .student-id {
            color: #7f8c8d;
            font-size: 0.9rem;
        }

        .details-list {
            list-style: none;
            padding: 0.5rem 0;
        }

        .details-list li {
            display: flex;
            justify-content: space-between;
            padding: 0.5rem;
            margin: 0.3rem 0;
            background-color: #f8f9fa;
            border-radius: 5px;
        }

        .detail-label {
            color: #3498db;
            font-weight: 500;
        }

        .detail-value {
            color: #2c3e50;
        }

        @media (max-width: 768px) {
            body {
                padding: 1rem;
            }

            .student-list {
                grid-template-columns: 1fr;
            }

            .student-card {
                margin: 0 0.5rem;
            }
        }
    </style>
</head>
<body>
<div class="container">
    <h1 class="page-title">用户信息</h1>

    <div class="student-list">
        <!-- 学生卡片1 -->
        <div class="student-card">
            <div class="student-avatar">
                <i class="fas fa-user-graduate"></i>
            </div>
            <div class="student-info">
                <h2 class="student-name">张三</h2>
                <span class="student-id">学号: 2023001</span>
            </div>
            <ul class="details-list">
                <li>
                    <span class="detail-label">年龄:</span>
                    <span class="detail-value">20</span>
                </li>
                <li>
                    <span class="detail-label">专业:</span>
                    <span class="detail-value">计算机科学</span>
                </li>
                <li>
                    <span class="detail-label">联系方式:</span>
                    <span class="detail-value">138-1234-5678</span>
                </li>
            </ul>
        </div>

        <!-- 学生卡片2 -->
        <div class="student-card">
            <div class="student-avatar">
                <i class="fas fa-user-graduate"></i>
            </div>
            <div class="student-info">
                <h2 class="student-name">李思思</h2>
                <span class="student-id">学号: 2023002</span>
            </div>
            <ul class="details-list">
                <li>
                    <span class="detail-label">年龄:</span>
                    <span class="detail-value">21</span>
                </li>
                <li>
                    <span class="detail-label">专业:</span>
                    <span class="detail-value">软件工程</span>
                </li>
                <li>
                    <span class="detail-label">联系方式:</span>
                    <span class="detail-value">139-8765-4321</span>
                </li>
            </ul>
        </div>


        <div class="student-card">
            <div class="student-avatar">
                <i class="fas fa-user-graduate"></i>
            </div>
            <div class="student-info">
                <h2 class="student-name">萍萍</h2>
                <span class="student-id">学号: 2023003</span>
            </div>
            <ul class="details-list">
                <li>
                    <span class="detail-label">年龄:</span>
                    <span class="detail-value">22</span>
                </li>
                <li>
                    <span class="detail-label">专业:</span>
                    <span class="detail-value">软件工程</span>
                </li>
                <li>
                    <span class="detail-label">联系方式:</span>
                    <span class="detail-value">199-8765-9898</span>
                </li>
            </ul>
        </div>

        <!-- 可以继续添加更多学生卡片 -->
    </div>
</div>
</body>
</html>
